/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tetris.view;

import javax.swing.JApplet;
import javax.swing.JButton;
import javax.swing.SwingUtilities;

/**
 *
 * @author Batist Leman & Pieter Hens
 */
public class HoofdApplet extends JApplet {

    /**
     * Initialization method that will be called after the applet is loaded
     * into the browser.
     */
    public void init() {
        // TODO start asynchronous download of heavy resources
        try  {
            SwingUtilities.invokeAndWait((new Runnable() {

                public void run() {
                   HoofdPaneel hfdpaneel = new HoofdPaneel();
                   setContentPane(hfdpaneel);
                   hfdpaneel.requestFocus();
                   
                }
            }));
        } catch (Exception e){
            System.err.println("foutje");;
        }
        
    }
    

    // TODO overwrite start(), stop() and destroy() methods

}
